package su.product.service;

import java.util.List;

import su.product.entity.Cate;

/**
 * 
 * 
 * @author sushimeng
 * 
 */
public interface CateService {

	/**
	 * 取某一根目录下的所有分类
	 * @param rootId
	 * @return
	 */
	public List<Cate> getAllCates(int rootId);
	
	public Cate getById(int cateId);

	public String addCate(Cate o)throws Exception;
	public String remove(int id)throws Exception;
	public void updateCateName(int id,String name)throws Exception;
	
}